<template>
    <yhdsl-dy-video class="video" :video_list="videoList" @tapLove="tapLove" @tapShare="tapShare" @tapAvater="tapAvater" @tapMsg="tapMsg" @tapFollow="tapFollow" />
</template>

<script>
import yhdslDyVideo from '@/components/yhdsl-dy/yhdsl-dy.vue';
export default {
    components: {
        yhdslDyVideo
    },
    data() {
        return {
            videoList: [
                {
                    video_id: 1,
                    nickname: 'yhdsl',
                    describe: '内容内容内容内容内容内容内容内容内容内容',
                    cover_url: '../../static/yhdsl/cover.jpg',
                    video_url:
                        'https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20200317.mp4',
                    dianzan: 10,
                    pinglun: 99,
                    zhuanfa: 10,
                    is_dianzan: true
                },
                {
                    video_id: 2,
                    nickname: 'yhdsl',
                    describe: '内容内容',
                    cover_url: '../../static/yhdsl/cover.jpg',
                    video_url:
                        'https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20200317.mp4',
                    dianzan: 10,
                    pinglun: 99,
                    zhuanfa: 10,
                    is_dianzan: false
                }
            ]
        };
    },
    methods: {
        tapAvater(item) {
            console.log('触发头像点击事件');
        },
        tapMsg(item) {
            console.log('触发评论事件');
        },
        tapShare(item) {
            console.log('触发分享事件');
        },
        tapFollow(item) {
            console.log('触发关注事件');
        },
        tapLove(item) {
            console.log('触发点赞事件');
        }
    }
};
</script>

<style lang="scss" scoped></style>